package com.runen.wnhz.runen.presenter.model;

import com.runen.wnhz.runen.data.entity.BaseEntity;
import com.runen.wnhz.runen.data.entity.RechargeBean;
import com.runen.wnhz.runen.service.PayApi;

import java.util.Map;

import rx.Observable;

/**
 * 描述：
 * 作者： 天天童话丶
 * 时间： 2018/6/2.
 */

public class PayModel {

    private PayApi mApi;

    public PayModel(PayApi api){
        this.mApi = api;
    }

    //充值
    public Observable<BaseEntity<RechargeBean>> rechargeApi(Map<String,String> map){
        return mApi.rechargeApi(map);
    }

    //支付
    public Observable<BaseEntity<RechargeBean>> payApi(Map<String,String> map){
        return mApi.payApi(map);
    }
}
